package com.jydw.da.frame.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * Canal 消息对象
 *
 * @author chenyj
 * @date 2023/7/4 23:59
 */
@NoArgsConstructor
@Data
public class CanalMessage<T> {
    //操作类型
    private String type;
    //表
    private String table;
    //修改后的数据 linkedhashmap
    private List<T> data;
    //数据库
    private String database;
    private Long es;
    private Integer id;
    private Boolean isDdl;
    //以前的属性 linkedHashMap menu_name -> aaaa1
    private List<T> old;
    //主键
    private List<String> pkNames;
    private String sql;
    private Long ts;
}